package com.yugao.fintech.antelope.infra;

import com.yugao.fintech.antelope.base.config.core.ConfigFactory;
import com.yugao.fintech.antelope.base.model.enums.ConfigDefineEnum;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class InfraRunner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) throws Exception {
        ConfigFactory.addListenConfigs(ConfigDefineEnum.STORAGE, ConfigDefineEnum.WX_MP, ConfigDefineEnum.WX_MA);
    }
}
